package 多线程.线程的常用方法;

public class MyThread extends Thread{
    @Override
    public void run() {
        Thread m = Thread.currentThread();
        for (int i = 0; i < 5; i++) {
            System.out.println(m.getName() + "输出: " + i);
        }
    }
}
